package com.jsb.laundry.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单明细
 * @TableName jsb_orders_item
 */
@TableName(value ="jsb_orders_item")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "JsbOrdersItem对象",description = "订单商品明细")
public class JsbOrdersItem implements Serializable {

    @ApiModelProperty(value = "父订单id", dataType = "string")
    private String orderId;

    @ApiModelProperty(value = "子订单id", dataType = "string")
    private String subOrderId;

    @ApiModelProperty(value = "商品id", dataType = "string")
    private String productId;

    @ApiModelProperty(value = "单价", dataType = "int")
    private int price;

    @ApiModelProperty(value = "数量", dataType = "int")
    private int quantity;

    @ApiModelProperty(value = "调整金额 可正可负", dataType = "int")
    private int adjustPrice;

    @ApiModelProperty(value = "已发货数量", dataType = "int")
    private int sentNum;

    @ApiModelProperty(value = "商品名称", dataType = "string")
    private String title;

    @ApiModelProperty(value = "服务id", dataType = "string")
    private String serveId;


    @ApiModelProperty(value = "洗护方式", dataType = "string")
    private String washingType;

    @ApiModelProperty(value = "商品图片", dataType = "string")
    private String img;

    @ApiModelProperty(value = "退款状态 1申请退款 2 退款中 3已退款", dataType = "int")
    private int refundStatus;

    @ApiModelProperty(value = "颜色", dataType = "string")
    private String color;

    @ApiModelProperty(value = "品牌", dataType = "string")
    private String brand;

    @ApiModelProperty(value = "瑕疵", dataType = "string")
    private String flaw;


    @ApiModelProperty(value = "配饰", dataType = "string")
    private String accessories;

    @ApiModelProperty(value = "洗后效果", dataType = "string")
    private String afterWashingEffect;

    @ApiModelProperty(value = "图片,多个以','隔开", dataType = "string")
    private String imgs;

    @ApiModelProperty(value = "创建时间", dataType = "date")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间", dataType = "date")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}